package com.leeafei.study.springboot.property;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "uploader")
public class UploaderProperties {

    // @Value("${uploader.path}")
    private String path;

    // @Value("${uploader.httpHost}")
    private String httpHost;

    private String httpImageUrl;

    public String getHttpImageUrl() {
        return httpImageUrl;
    }

    public void setHttpImageUrl(String httpImageUrl) {
        this.httpImageUrl = httpImageUrl;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getHttpHost() {
        return httpHost;
    }

    public void setHttpHost(String httpHost) {
        this.httpHost = httpHost;
    }
}
